<script setup lang="ts">
import { MessageBox } from '../../components/dialog/MessageBox';
function on_alert_click(){
    MessageBox.alert('这是一个提示框描述','提示标题')
}
function on_confirm_click(){
    console.log("on_confirm_click")
    MessageBox.confirm('这是一个确认框','提示',  () => {
        console.log('cancle') 
    }, () => {
        console.log('confirm') 
    }, () => {
        console.log('close') 
    })
}
</script>

<template>
<p>test page</p>
<div>
    <button @click="on_alert_click">alert</button>
</div>
<div>
    <button @click="on_confirm_click">confirm</button>
</div>
</template>

<style scoped>

</style>